
<modelglue>
	
	<controllers>
		
		<controller name="Category" type="it.millemultimedia.controller.CategoryController" >
			
			<event-listener message="Category.new" function="new" />
			<event-listener message="Category.save" function="save" />
			<event-listener message="Category.create" function="create" />
			<event-listener message="Category.update" function="update" />
			<event-listener message="Category.delete" function="delete" />
			<event-listener message="Category.get" function="get" />
			<event-listener message="Category.list" function="list" />
			
		</controller>
		
	</controllers>
	
	<event-types>
		
	</event-types>
	
	<event-handlers>
		
		<event-handler name="form.Category" access="private">
			<views>
				<include name="form" template="Category.cfm" />
			</views>
			<results>
				<result do="private" />
			</results>
		</event-handler>
		
		<event-handler name="new.Category">
			<broadcasts>
				<message name="Category.new" />
			</broadcasts>
			<results>
				<result do="form.Category" />
			</results>
		</event-handler>
		
		<event-handler name="edit.Category">
			<broadcasts>
				<message name="Category.get" />
			</broadcasts>
			<results>
				<result do="form.Category" />
			</results>
		</event-handler>
		
		<event-handler name="save.Category">
			<broadcasts>
				<message name="Category.save" />
			</broadcasts>
			<results>
				<result name="save.success" do="" redirect="true" />
				<result name="save.failure" do="" redirect="true" />
			</results>
		</event-handler>
		
		<event-handler name="create.Category">
			<broadcasts>
				<message name="Category.create" />
			</broadcasts>
			<results>
				<result name="save.success" do="" redirect="true" />
				<result name="save.failure" do="" redirect="true" />
			</results>
		</event-handler>
		
		<event-handler name="update.Category">
			<broadcasts>
				<message name="Category.update" />
			</broadcasts>
			<results>
				<result name="save.success" do="" redirect="true" />
				<result name="save.failure" do="" redirect="true" />
			</results>
		</event-handler>
		
		<event-handler name="delete.Category">
			<broadcasts>
				<message name="Category.delete" />
			</broadcasts>
			<results>
				<result name="save.success" do="" redirect="true" />
				<result name="save.failure" do="" redirect="true" />
			</results>
		</event-handler>
		
		<event-handler name="list.Category">
			<broadcasts>
				<message name="Category.list" />
			</broadcasts>
		</event-handler>
		
	</event-handlers>
	
</modelglue>

